package com.yjd.bi.rewards.dao.impl;

import java.util.Map;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.bi.rewards.model.ActReturnAwardModel;
import com.yjd.bi.rewards.dao.IActReturnAwardDao;

/**
 * <b>description</b>：返现红包数据访问层 <br>
 * <b>time</b>：2016-08-17 16:12:27 <br>
 * <b>author</b>： renbangjie renbangjie@126.com
 */
@Component("actReturnAwardDao")
public class ActReturnAwardDaoImpl extends BaseDaoImpl implements IActReturnAwardDao {

	private static final String SQLMAPNAMESPACE = ActReturnAwardModel.class.getName();
	private static final String PKNAME = "return_award_id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public Double getTotalAmount(Map<String, Object> paramMap) throws Exception {
		return (Double) this.getSqlMap(false).queryForObject(
				getStatement("getTotalAmount"), paramMap);
	}
	
}
